Completed
Push — master ( 69943d...9f3a94 )
by Esaú
01:40
created

DateTimeException.spec.js ➔ ???   B

Complexity

Conditions 1
Paths 512

Size

Total Lines 195

Duplication

Lines 195
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 512
dl 195
loc 195
rs 7.0742
nop 0

How to fix   Long Method   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
// spec/DateTimeException.spec.js
2
"use strict";
3
4
// :: DEPENDENCIES
5
6
// load native dependencies
7
const path = require("path");
8
9
// load local dependencies
10
const hierarchy = require(path.join(__dirname, "helpers", "hierarchy-helper.js"));
11
12
// :: TESTING
13
14
hierarchy(["Throwable", "Exception", "RuntimeException", "DateTimeException"]);